package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 配件查询对象 motor_parts
 * 
 * @author ruoyi
 * @date 2025-03-19
 */
public class MotorParts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 编号（字符串类型） */
    @Excel(name = "编号", readConverterExp = "字=符串类型")
    private String code;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 型号 */
    @Excel(name = "型号")
    private String model;
    
    /** 图片路径 */
    private String image;

    /** 转子型号 */
    @Excel(name = "转子型号")
    private String rotorModel;

    /** 定子型号 */
    @Excel(name = "定子型号")
    private String statorModel;

    /** 前轴承 */
    @Excel(name = "前轴承")
    private String frontBearing;

    /** 后轴承 */
    @Excel(name = "后轴承")
    private String rearBearing;

    /** 开关 */
    @Excel(name = "开关")
    private String switchType;

    /** 碳刷 */
    @Excel(name = "碳刷")
    private String carbonBrush;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    private String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    public void setRotorModel(String rotorModel) 
    {
        this.rotorModel = rotorModel;
    }

    public String getRotorModel() 
    {
        return rotorModel;
    }

    public void setStatorModel(String statorModel) 
    {
        this.statorModel = statorModel;
    }

    public String getStatorModel() 
    {
        return statorModel;
    }

    public void setFrontBearing(String frontBearing) 
    {
        this.frontBearing = frontBearing;
    }

    public String getFrontBearing() 
    {
        return frontBearing;
    }

    public void setRearBearing(String rearBearing) 
    {
        this.rearBearing = rearBearing;
    }

    public String getRearBearing() 
    {
        return rearBearing;
    }

    public void setSwitchType(String switchType) 
    {
        this.switchType = switchType;
    }

    public String getSwitchType() 
    {
        return switchType;
    }

    public void setCarbonBrush(String carbonBrush) 
    {
        this.carbonBrush = carbonBrush;
    }

    public String getCarbonBrush() 
    {
        return carbonBrush;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("category", getCategory())
            .append("model", getModel())
            .append("image", getImage())
            .append("rotorModel", getRotorModel())
            .append("statorModel", getStatorModel())
            .append("frontBearing", getFrontBearing())
            .append("rearBearing", getRearBearing())
            .append("switchType", getSwitchType())
            .append("carbonBrush", getCarbonBrush())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
